<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateFhDownloadTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('fh_download', function (Blueprint $table) {
            $table->increments('id');
            $table->string('name')->default('')->comment('资源名称');
            $table->string('b_url')->nullable()->comment('百度云资源地址');
            $table->tinyInteger('type')->default('1')->nullable()->comment('资源类型');
            $table->string('f_url')->nullable()->comment('本地资源地址');
            $table->tinyInteger('show')->default('1')->comment('是否显示');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('fh_download');
    }
}
